<?php
namespace Addons\OaSystem\Model;
//use Think\Model;
use Think\Model\ViewModel;

class OaDeptViewModel extends ViewModel{
    public $viewFields = array(
        'OaDept'=>array('id','name','pid','short_name','dept_grade_id'),
        'OaDeptGrade'=>array(
            'value' => 'grade_value',
            '_on'=>'OaDept.dept_grade_id=OaDeptGrade.id'),
    );
}
?>